import axios from "axios";

const ajax = axios.create({
  timeout: 8000,
  baseURL: "http://localhost:7002",
});

export const registerApi = (data = {}) => {
  return ajax.post(`/register`, {
    ...data,
  });
};
export const loginApi = (data = {}) => {
  return ajax.post(`/login`, {
    ...data,
  });
};
